import java.util.Date;
import java.util.concurrent.TimeUnit;

public class TimeShower extends Thread
{
	
	
	@Override
	public void run()
	{
		while (true)
		{
			System.out.println(new Date());
			
			try
			{
				Thread.sleep(TimeUnit.SECONDS.toMillis(1));
			} catch (InterruptedException e)
			{
				
			}
		}
	}
}
